package com.online.questionnaire.model;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 
 * @TableName questions
 */
@TableName(value ="questions")
@Data
public class Questions implements Serializable {
    /**
     * 
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 问卷id
     */
    @TableField(value = "surveyId")
    private Long surveyid;

    /**
     * 内容
     */
    @TableField(value = "content")
    private String content;

    @TableField(exist = false)
    private String value;

    /**
     * 输入提示
     */
    @TableField(value = "placeholder")
    private String placeholder;

    /**
     * 问题类型：0 单选 1多选 2简单填空 3多行填空 
     */
    @TableField(value = "type")
    private Integer type;

    /**
     * 输入类型 text 普通文本 password密码 number数字 email 邮箱
     */
    @TableField(value = "inputType")
    private String inputType;

    /**
     * 是否必填 0 非必填 1必填
     */
    @TableField(value = "required")
    private Integer required;

    /**
     * 其他配置
     */
    @TableField(value = "config")
    private String config;

    /**
     * 顺序
     */
    @TableField(value = "orders")
    private Integer orders;

    /**
     * 
     */
    @TableField(value = "createTime")
    private Date createtime;

    /**
     * 
     */
    @TableField(value = "updateTime")
    private Date updatetime;

    /**
     * 
     */
//    @TableLogic
//    private Integer isdelete;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}